﻿@model PhoneBilling.Models.Report6Model
@{
    ViewBag.Title = "收费等级统计";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script type="text/javascript">
    $(document).ready(           
function () 
{  
    $(".myDatePickerClass1 ").datepicker({
        buttonImage: '@Url.Content("~/Content/image/calendar.gif")',               
        dateFormat: 'yy/mm/dd',                 
        showOn: 'button',               
        buttonImageOnly: true ,
        changeMonth:true,              
        changeYear:true,
    });   
    $(".myDatePickerClass2 ").datepicker({
        buttonImage: '@Url.Content("~/Content/image/calendar.gif")',               
        dateFormat: 'yy/mm/dd',                 
        showOn: 'button',               
        buttonImageOnly: true ,
        changeMonth:true,              
        changeYear:true,
    });
    $(".areaType").attr("disabled" , $(".s2").attr("checked") == "checked");
    $(".t2").attr("disabled", $(".s1").attr("checked") == "checked");
}       
);
function exportClick() {
        $(".export").val("True");
        beforeSubmit();
    }

    function searchClick() {
        $(".export").val("False");
        beforeSubmit();
    }
</script>
@using (Html.BeginForm())
{
    <div>
        <div>
        @Html.HiddenFor(m => m.IsExport, new { @class = "export" })
        <div class="input-text">
             @Html.LabelFor(m => m.开始日期)
             @Html.TextBox("开始日期", Model.开始日期.ToString("d"), new { @class = "myDatePickerClass1" }) 
             
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.结束日期)
             @Html.TextBox("结束日期", Model.结束日期.ToString("d"), new { @class = "myDatePickerClass2" }) 
             
        </div>
        <div>
                <input type="submit" value="查询" class="input-submit" onclick="searchClick()" />
                <input type="submit" value="导出Excel" class="input-submit" onclick="exportClick()" />
        
    </div>
     </div>
    </div>
}

